package builder.pattern.demo;

/**
 * @author 逸足天涯
 * @create 2019-10-12 18:44
 */
public class BuilderPatternEx {
    public static void main(String[] args) {
        System.out.println("***Builder Pattern Demo***");
        //创建组装者
        Director director = new Director();
        //创建car 对象
        IBuilder carBuilder = new Car();
        //组装car
        director.construct(carBuilder);
        Product p1 = carBuilder.getVehicle();

        p1.show();
    }

}